package com.job.quartz.dao;

import com.job.quartz.entity.QrtzIsClustered;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.Map;

public interface QrtzRepository extends JpaRepository<QrtzIsClustered,Long> {

    @Query(value = "select * from QRTZ_LOCKS where lock_name = 'TRIGGER_ACCESS' for update",nativeQuery = true)
    Map<String,Object> selectByLockName();
}
